// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';

/** 发送验证码 POST /api/login/captcha */
export async function getFakeCaptcha(
  body: {
    // query
    /** 当前的页码 */
    username: string;
    /** 页面的容量 */
    password: string;
  },
  options?: { [key: string]: any },
) {
  return request<API.ErrorResponse<any>>('/api/authorization/login/captcha', {
    method: 'POST',
    data: body,
    ...(options || {}),
  });
}
